package com.spdzen.service;

import com.spdzen.model.SysUser;
import com.spdzen.support.PageNumParam;
import com.spdzen.support.PageOffsetParam;
import com.spdzen.support.SimplePage;
import com.spdzen.support.SimpleService;
import com.spdzen.support.result.ResultCode;
import com.spdzen.vo.SysUserAdminVO;
import com.spdzen.vo.search.SysUserAdminSearch;

/**
 * 服务类
 */
public interface SysUserService extends SimpleService<SysUser> {

	SimplePage<SysUserAdminVO> selectPage(PageOffsetParam param, SysUserAdminSearch search);

	SimplePage<SysUserAdminVO> selectPage(PageNumParam param, SysUserAdminSearch search);

	void inserIfPermission(SysUser entity) throws Exception;

	void updateIfPermission(SysUser entity);

	void changePassword(Long id, String password);

	ResultCode login(String loginName, String password);

	void deleteIfPermission(Long id);

	SysUser selectByLoginName(String loginName);

	void updateLogin(Long id, String ip);
	
}
